package pri.hillchen.springbootstd.bms.entity.system;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * <p>
 * 访问日志表
 * </p>
 *
 * @author hillchen
 * @since 2017-10-19
 */
@TableName("sys_access_log")
public class AccessLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	private Long id;
    /**
     * 访问地址
     */
	@TableField("access_url")
	private String accessUrl;
    /**
     * 请求参数
     */
	@TableField("access_parameter")
	private String accessParameter;
    /**
     * 访问用户账号
     */
	private String account;
    /**
     * 请求接收时间
     */
	@TableField("access_time")
	private Date accessTime;
    /**
     * 请求应答时间
     */
	@TableField("answer_time")
	private Date answerTime;
    /**
     * 应答类型(0:异常应答,2正确应答)
     */
	@TableField("answer_type")
	private Integer answerType;
    /**
     * 应答错误信息
     */
	@TableField("error_msg")
	private String errorMsg;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAccessUrl() {
		return accessUrl;
	}

	public void setAccessUrl(String accessUrl) {
		this.accessUrl = accessUrl;
	}

	public String getAccessParameter() {
		return accessParameter;
	}

	public void setAccessParameter(String accessParameter) {
		this.accessParameter = accessParameter;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Date getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	public Date getAnswerTime() {
		return answerTime;
	}

	public void setAnswerTime(Date answerTime) {
		this.answerTime = answerTime;
	}

	public Integer getAnswerType() {
		return answerType;
	}

	public void setAnswerType(Integer answerType) {
		this.answerType = answerType;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "AccessLog{" +
			"id=" + id +
			", accessUrl=" + accessUrl +
			", accessParameter=" + accessParameter +
			", account=" + account +
			", accessTime=" + accessTime +
			", answerTime=" + answerTime +
			", answerType=" + answerType +
			", errorMsg=" + errorMsg +
			", createTime=" + createTime +
			"}";
	}
}
